package com.azxc.rapid.plus.system.wrapper;

import com.azxc.rapid.core.mp.support.BaseEntityWrapper;
import com.azxc.rapid.core.tool.utils.BeanUtil;
import com.azxc.rapid.plus.system.entity.SystemInfoEntity;
import com.azxc.rapid.plus.system.vo.SystemInfoVO;

/**
 * 系统配置信息 包装类,返回视图层所需的字段
 */
public class SystemInfoWrapper extends BaseEntityWrapper<SystemInfoEntity, SystemInfoVO> {

	public static SystemInfoWrapper build() {
		return new SystemInfoWrapper();
	}

	@Override
	public SystemInfoVO entityVO(SystemInfoEntity systemInfo) {
		SystemInfoVO systemInfoVO = BeanUtil.copy(systemInfo, SystemInfoVO.class);

		//User createUser = UserCache.getUser(systemInfo.getCreateUser());
		//User updateUser = UserCache.getUser(systemInfo.getUpdateUser());
		//systemInfoVO.setCreateUserName(createUser.getName());
		//systemInfoVO.setUpdateUserName(updateUser.getName());

		return systemInfoVO;
	}

}
